package love.bot.forli.group.review.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author Kontori
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(description = "入群码实体")
public class Code {

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "code_id",type = IdType.AUTO)
    private Integer codeId;

    @ApiModelProperty(value = "入群码")
    @TableField("`value`")
    private String value;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "对应测试ID")
    private Integer testId;

    @ApiModelProperty(value = "状态码，0未使用1已使用2已销毁")
    private Integer status;

    @ApiModelProperty(value = "使用者QQ")
    private String qq;

    @ApiModelProperty(value = "邀请人QQ")
    private String inviterQq;

}
